/* pages/publishDetail/index.wxss */
/*适配480以上的ipad*/
/* 480/750=0.64*/
@function toPadPx($rpx) {
  @return $rpx*0.64px;
}

@mixin pad-devices {
  @media (min-width:480px) {
    @content;
  }
}

.task-list {
  width: 96%;
  height: 100%;
  padding: 20rpx;
  display: flex;
  align-content: center;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;

  @include pad-devices {
    padding: toPadPx(20);
  }
}

.task-item {
  background-color: #FFFFFF;
  border-radius: 20rpx;
  position: relative;
  padding-bottom: 20rpx;

  @include pad-devices {
    border-radius: toPadPx(20);
  }
}

.task-item:not(:first-child) {
  margin-top: 20rpx;
}

.task-item-title {
  // margin-top: 20rpx;
  padding: 20rpx;
}

.task-item-title:nth-child(2) {
  padding-top: 20rpx;
}

.labels-item {
  margin-top: 10rpx;
  margin-left: 20rpx;
  font-size: small;
}

.task-item-title-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.file-name {
  flex: 1;
}

.file-action {
  color: #007aff;
  font-size: 14px;
  cursor: pointer;
}

.task-item-large-title {
  font-size: 40rpx;
  text-align: left;

  @include pad-devices {
    font-size: toPadPx(32);
  }
}

.task-content {
  margin-top: 20rpx;
  padding-top: 0;
  border-bottom-left-radius: 20rpx;
  border-bottom-right-radius: 20rpx;
  background-color: #EFEFEF;
  // max-height: 180rpx;
  overflow: hidden auto;

  @include pad-devices {
    border-bottom-left-radius: toPadPx(20);
    border-bottom-right-radius: toPadPx(20);
  }
}

.task-small-item {
  border-radius: 20rpx;
  margin: 20rpx;
  padding: 20rpx;
  position: relative;
  border-bottom: 1px solid #d9d9d9;
  background-color: #FFFFFF;

  @include pad-devices {
    border-radius: toPadPx(20);
  }
}

.sub-task-title {
  height: 40rpx;
  line-height: 40rpx;
  margin-bottom: 20rpx;
  font-size: 28rpx;
}

.task-title-img,
.action-title-img {
  width: 30rpx;
  height: 30rpx;
  margin-top: 5rpx;
  float: left;
  padding-right: 10rpx;
}

.task-title-img {
  padding-right: 20rpx;
}

.action-title-img {
  margin-top: 8rpx;
}

.sub-task-article-title {
  font-weight: bold;
  max-height: 80rpx;
  line-height: 40rpx;
  text-overflow: ellipsis;
  overflow: hidden;
}

.task-state,
.task-sub-state {
  width: 120rpx;
  height: 40rpx;
  line-height: 40rpx;
  font-size: 24rpx;
  text-align: center;
  color: #FFFFFF;
  //background-color: #FF814A;
  border-top-right-radius: 20rpx;
  border-bottom-left-radius: 20rpx;

  @include pad-devices {
    width: toPadPx(120);
    height: toPadPx(40);
    line-height: toPadPx(40);
    font-size: toPadPx(24);
    border-top-right-radius: toPadPx(20);
    border-bottom-left-radius: toPadPx(20);
  }
}

.task-state,
.task-state-content {
  position: absolute;
  top: 0;
  right: 0;
}

.task-state-content {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
}

.task-sub-state {
  margin-left: 20rpx;
}

.copy-content {
  width: 80%;
  color: #8f8d8e;
  font-size: 24rpx;
}

.share-content {
  width: 100%;
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-item {
  margin-left: 20rpx;
}

.text-overflow {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.task-item-block {
  width: 6rpx;
  height: 30rpx;
  line-height: 30rpx;
  background: #bdbdbd;
  margin: 20rpx 0;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  //border-radius: 5rpx;
  @include pad-devices {
    width: toPadPx(6);
    height: toPadPx(30);
    line-height: toPadPx(30);
    margin: toPadPx(20) 0;
  }
}

.voucher-name {
  padding-left: 20rpx;

  @include pad-devices {
    padding-left: toPadPx(20);
  }

  vertical-align: top;
}

.action-btn {
  position: fixed;
  width: 94%;
  bottom: 4%;
  left: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tui-modal-custom {}

.tui-modal-title {
  text-align: center;
  font-size: 32rpx;
  margin-bottom: 20rpx;

  @include pad-devices {
    font-size: toPadPx(32);
    margin-bottom: toPadPx(20);
  }
}

.tui-modal-sub-title {
  text-align: start;
  margin-top: 20rpx;
  font-size: 24rpx;
  color: #666666;

  @include pad-devices {
    margin-top: toPadPx(20);
    font-size: toPadPx(24);
  }
}

.voucher-item {
  overflow: hidden;
  word-break: break-all;
  line-height: 1;
  margin-top: 10rpx;
  margin-left: 20rpx;
}

.voucher-item .task-item-block {
  margin: 0 20rpx 0 0;

  @include pad-devices {
    margin: 0 toPadPx(20) 0 0;
  }
}

.voucher-img {
  width: 300rpx;
  height: 100rpx;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 10rpx;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  margin-left: 20rpx;

  @include pad-devices {
    width: toPadPx(300);
    height: toPadPx(100);
    margin-left: toPadPx(20);
    border-radius: toPadPx(10);
  }
}